package main.listeners;

import main.bots.Bot;
import main.bots.Methods;
import main.scripts.Combat;

public class ServerMessagesHandler {
	
	public static ServerMessageListener listeners = null;
	
	public static void handleMessage(String s) {
		if(listeners == null) {
		ServerMessageListener a = (ServerMessageListener) Methods.getClientToUse().scriptMan.botRunning;
		if(a != null) {
			listeners = a;
		}
		} else {
			listeners.serverMessageRecieved(s); //Send the message
		}
		
	}

}
